summaryrefslogtreecommitdiffstats
path: root/NaiveFFT/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'NaiveFFT/main.c')
-rw-r--r--NaiveFFT/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/NaiveFFT/main.c b/NaiveFFT/main.c
index 036bb79..6372c79 100644
--- a/NaiveFFT/main.c
+++ b/NaiveFFT/main.c
@@ -14,6 +14,10 @@
#include <time.h>
#include <stdint.h>
+#if __EMSCRIPTEN__
+#include <emscripten/emscripten.h>
+#endif
+
#include "fft.h"
//test data array
@@ -26,6 +30,9 @@ double data_q[DATA_SIZE] = {0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f};
int main(int argc, const char * argv[]) {
+#if __EMSCRIPTEN__
+ printf("Wasm NaiveFFT module loaded\n");
+#else
int i;
// insert code here...
@@ -95,5 +102,6 @@ int main(int argc, const char * argv[]) {
strftime(buffer, 32, "%H:%M:%S", tm_info);
puts(buffer);
}
+#endif
return 0;
}