#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <script.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
gehe zum Quellcode dieser Datei
static void getfunc |
( |
lua_State * |
L, |
|
|
int |
opt |
|
) |
| |
|
static |
Definiert in Zeile 150 der Datei lbaselib.c.
155 luaL_argcheck(L, level >= 0, 1,
"level must be non-negative");
160 luaL_error(L,
"no function environment for tail call at level %d",
static int load_aux |
( |
lua_State * |
L, |
|
|
int |
status |
|
) |
| |
|
static |
static int luaB_collectgarbage |
( |
lua_State * |
L) | |
|
|
static |
Definiert in Zeile 226 der Datei lbaselib.c.
227 static const char *
const opts[] = {
"stop",
"restart",
"collect",
228 "count",
"step",
"setpause",
"setstepmul",
NULL};
233 int res =
lua_gc(L, optsnum[o], ex);
234 switch (optsnum[o]) {
static int luaB_getmetatable |
( |
lua_State * |
L) | |
|
|
static |
Definiert in Zeile 34 der Datei lbaselib.c.
39 const int max_buf_chars=
sizeof(
buf)-1;
43 for (i=1; i<=
n; i++) {
65 if(buf_chars+
strlen(s) >= max_buf_chars) {
66 strncpy(buf+buf_chars,s,max_buf_chars-buf_chars);
72 if(buf_chars >= max_buf_chars-1)
77 fprintf(stdout,
"%s\n",buf);
Definiert in Zeile 391 der Datei lbaselib.c.
399 if (i < 0) i = n + i;
400 else if (i > n) i =
n;
Definiert in Zeile 176 der Datei lbaselib.c.
189 LUA_QL(
"setfenv")
" cannot change environment of given object");
static int luaB_setmetatable |
( |
lua_State * |
L) | |
|
|
static |
Definiert in Zeile 137 der Datei lbaselib.c.
141 "nil or table expected");
143 luaL_error(L,
"cannot change a protected metatable");
Definiert in Zeile 86 der Datei lbaselib.c.
99 luaL_argcheck(L, 2 <= base && base <= 36, 2,
"base out of range");
102 while (
isspace((
unsigned char)(*s2))) s2++;