summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-07-11 10:09:12 +0200
committerJo-Philipp Wich <jo@mein.io>2021-07-11 15:49:14 +0200
commitcc4ce8dfd13e833702c949e56049443cd01c0dfb (patch)
tree63407675b65a6d3bd3dfc67cda4117960b4cb5de /include
parentf5d7526152c0272044f3df55a23e29156efe463e (diff)
module: remove unused defines
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'include')
-rw-r--r--include/ucode/module.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/include/ucode/module.h b/include/ucode/module.h
index 43d9d51..1814b3a 100644
--- a/include/ucode/module.h
+++ b/include/ucode/module.h
@@ -20,26 +20,6 @@
#include "lib.h"
#include "vm.h"
-#define register_functions(scope, functions) \
- if (scope) \
- for (int i = 0; i < ARRAY_SIZE(functions); i++) \
- json_object_object_add(scope->header.jso, functions[i].name, \
- ops->value.cfunc(functions[i].name, functions[i].func))
-
-#define alloc_prototype(functions) ({ \
- uc_prototype *__proto = uc_object_as_prototype(ops->value.proto(NULL)); \
- register_functions(__proto, functions); \
- __proto; \
-})
-
-#define declare_type(name, proto, freefn) \
- ucv_ressource_type_add(name, proto, freefn)
-
-#define alloc_ressource(data, type) \
- ucv_ressource_new(ucv_object_new(NULL), type, data)
-
-#define register_ressource(scope, key, res) \
- json_object_object_add((scope)->header.jso, key, (res)->header.jso)
void uc_module_init(uc_vm_t *vm, uc_value_t *scope) __attribute__((weak));