diff options
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1160,6 +1160,12 @@ static int num2int (lua_State *L) { | |||
1160 | } | 1160 | } |
1161 | 1161 | ||
1162 | 1162 | ||
1163 | static int makeseed (lua_State *L) { | ||
1164 | lua_pushinteger(L, luaL_makeseed(L)); | ||
1165 | return 1; | ||
1166 | } | ||
1167 | |||
1168 | |||
1163 | static int newstate (lua_State *L) { | 1169 | static int newstate (lua_State *L) { |
1164 | void *ud; | 1170 | void *ud; |
1165 | lua_Alloc f = lua_getallocf(L, &ud); | 1171 | lua_Alloc f = lua_getallocf(L, &ud); |
@@ -1962,6 +1968,7 @@ static const struct luaL_Reg tests_funcs[] = { | |||
1962 | {"newstate", newstate}, | 1968 | {"newstate", newstate}, |
1963 | {"newuserdata", newuserdata}, | 1969 | {"newuserdata", newuserdata}, |
1964 | {"num2int", num2int}, | 1970 | {"num2int", num2int}, |
1971 | {"makeseed", makeseed}, | ||
1965 | {"pushuserdata", pushuserdata}, | 1972 | {"pushuserdata", pushuserdata}, |
1966 | {"querystr", string_query}, | 1973 | {"querystr", string_query}, |
1967 | {"querytab", table_query}, | 1974 | {"querytab", table_query}, |