aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/lapi.c b/lapi.c
index a1e975a3..8528dd65 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 1.19 1998/01/09 14:44:55 roberto Exp roberto $ 2** $Id: lapi.c,v 1.20 1998/01/27 19:13:45 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -572,6 +572,27 @@ lua_Object lua_getref (int ref)
572} 572}
573 573
574 574
575/*
576** =======================================================
577** Derived functions
578** =======================================================
579*/
580int (lua_call) (char *name) { return lua_call(name); }
581
582void (lua_pushref) (int ref) { lua_pushref(ref); }
583
584int (lua_refobject) (lua_Object o, int l) { return lua_refobject(o, l); }
585
586void (lua_register) (char *n, lua_CFunction f) { lua_register(n, f); }
587
588void (lua_pushuserdata) (void *u) { lua_pushuserdata(u); }
589
590void (lua_pushcfunction) (lua_CFunction f) { lua_pushcfunction(f); }
591
592int (lua_clonetag) (int t) { return lua_clonetag(t); }
593
594
595
575 596
576#ifdef LUA_COMPAT2_5 597#ifdef LUA_COMPAT2_5
577/* 598/*