diff options
Diffstat (limited to 'src/l52util.c')
-rw-r--r-- | src/l52util.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/l52util.c b/src/l52util.c index 592c1d1..0b40c3e 100644 --- a/src/l52util.c +++ b/src/l52util.c | |||
@@ -43,6 +43,11 @@ void lua_rawsetp (lua_State *L, int index, const void *p){ | |||
43 | lua_rawset(L, index); | 43 | lua_rawset(L, index); |
44 | } | 44 | } |
45 | 45 | ||
46 | void lutil_require(lua_State *L, const char* name, lua_CFunction fn, int glb) { | ||
47 | // @fixme generate error if we can not load module | ||
48 | lua_cpcall(L, fn, NULL); | ||
49 | } | ||
50 | |||
46 | #endif | 51 | #endif |
47 | 52 | ||
48 | int lutil_newmetatablep (lua_State *L, const void *p) { | 53 | int lutil_newmetatablep (lua_State *L, const void *p) { |