mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
all API functions are declared in a single line (to facilitate pre-processing).
This commit is contained in:
parent
728ff20701
commit
f379d06e24
6 changed files with 23 additions and 29 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lauxlib.c,v 1.40 2000/10/20 16:39:03 roberto Exp roberto $
|
||||
** $Id: lauxlib.c,v 1.41 2000/10/27 16:15:53 roberto Exp roberto $
|
||||
** Auxiliary functions for building Lua libraries
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -75,8 +75,7 @@ LUALIB_API const char *luaL_check_lstr (lua_State *L, int narg, size_t *len) {
|
|||
}
|
||||
|
||||
|
||||
LUALIB_API const char *luaL_opt_lstr (lua_State *L, int narg, const char *def,
|
||||
size_t *len) {
|
||||
LUALIB_API const char *luaL_opt_lstr (lua_State *L, int narg, const char *def, size_t *len) {
|
||||
if (lua_isnull(L, narg)) {
|
||||
if (len)
|
||||
*len = (def ? strlen(def) : 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue