summaryrefslogtreecommitdiff
path: root/src/compiler-support.h
diff options
context:
space:
mode:
authorDaniel Wirtz <dcode@dcode.io>2017-11-22 18:35:45 +0100
committerAlon Zakai <alonzakai@gmail.com>2017-11-22 09:35:45 -0800
commit94cbe63149248e251580ef95a6d3a31faf00a238 (patch)
treeafce67e1b95f29eccac259f156185e982d6e3bb0 /src/compiler-support.h
parent13ec76dfbc1c72a5e77d6a33fca5bf349308162d (diff)
downloadbinaryen-94cbe63149248e251580ef95a6d3a31faf00a238.tar.gz
binaryen-94cbe63149248e251580ef95a6d3a31faf00a238.tar.bz2
binaryen-94cbe63149248e251580ef95a6d3a31faf00a238.zip
Provide AddImport/AddExport for each element in the C-API (#1292)
* Provide AddImport/AddExport for each element in the C-API
Diffstat (limited to 'src/compiler-support.h')
-rw-r--r--src/compiler-support.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler-support.h b/src/compiler-support.h
index f105271b5..5365aa23a 100644
--- a/src/compiler-support.h
+++ b/src/compiler-support.h
@@ -41,10 +41,13 @@
#ifdef __GNUC__
#define WASM_NORETURN __attribute__((noreturn))
+#define WASM_DEPRECATED __attribute__((deprecated))
#elif defined(_MSC_VER)
#define WASM_NORETURN __declspec(noreturn)
+#define WASM_DEPRECATED __declspec(deprecated)
#else
#define WASM_NORETURN
+#define WASM_DEPRECATED
#endif
// The code might contain TODOs or stubs that read some values but do nothing