summaryrefslogtreecommitdiffstats
path: root/nebu/include/scripting/nebu_scripting.h
blob: 867eada85698197845f1bf500211f88fba286601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef NEBU_SCRIPTING_H
#define NEBU_SCRIPTING_H

#include "lua.h"

extern void scripting_Init();
extern void scripting_Quit();
extern void Scripting_Idle();

extern int scripting_GetGlobal(const char *global, const char *s, ...);
extern int scripting_SetFloat(float f, const char *name, const char *global, const char *s, ...);

extern int scripting_IsNilResult();
extern int scripting_GetIntegerResult(int *i);
extern int scripting_GetFloatResult(float *f);
extern void scripting_GetFloatArrayResult(float *f, int n);
extern int scripting_GetStringResult(char **s);
extern int scripting_CopyStringResult(char *s, int len);


extern void scripting_RunFile(const char *name);
extern void scripting_Run(const char *command);
extern void scripting_RunFormat(const char *format, ...);
extern void scripting_RunGC();
extern void scripting_Register(const char *name, int(*func) (lua_State *L));

#endif