summaryrefslogtreecommitdiff
path: root/uscript/uscript.h
blob: 1973c7d669ed3edda5021d37cb4f9d8959a61b01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef __USCRIPT_LANG_H__
#define __USCRIPT_LANG_H__

struct us_func;

typedef void (*us_cfunc_sig)(int argc);

void us_init(void);
void us_deinit(void);

void us_load_file(const char *file);
void us_load_src(const char *src);

void us_exec(struct us_func *func);
void us_err(const char *msg, ...);

void us_set_cfunc(const char *c_name, us_cfunc_sig c, int argc);

#endif // __USCRIPT_LANG_H__