diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-02-12 17:23:32 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-02-12 17:23:32 -0200 |
| commit | f380d627f8f018e029c889e809f1c0f9cc6fc2e5 (patch) | |
| tree | 2c16130cf50294a88be303e5ca42e502ee0eee7d /lapi.c | |
| parent | aafa106d108581ab8b259bfde3bcf1166a17c3e9 (diff) | |
| download | lua-f380d627f8f018e029c889e809f1c0f9cc6fc2e5.tar.gz lua-f380d627f8f018e029c889e809f1c0f9cc6fc2e5.tar.bz2 lua-f380d627f8f018e029c889e809f1c0f9cc6fc2e5.zip | |
usefull macros also available as functions
Diffstat (limited to 'lapi.c')
| -rw-r--r-- | lapi.c | 23 |
1 files changed, 22 insertions, 1 deletions
| @@ -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 | */ | ||
| 580 | int (lua_call) (char *name) { return lua_call(name); } | ||
| 581 | |||
| 582 | void (lua_pushref) (int ref) { lua_pushref(ref); } | ||
| 583 | |||
| 584 | int (lua_refobject) (lua_Object o, int l) { return lua_refobject(o, l); } | ||
| 585 | |||
| 586 | void (lua_register) (char *n, lua_CFunction f) { lua_register(n, f); } | ||
| 587 | |||
| 588 | void (lua_pushuserdata) (void *u) { lua_pushuserdata(u); } | ||
| 589 | |||
| 590 | void (lua_pushcfunction) (lua_CFunction f) { lua_pushcfunction(f); } | ||
| 591 | |||
| 592 | int (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 | /* |
