Freeciv-3.3
Loading...
Searching...
No Matches
luascript_func.h
Go to the documentation of this file.
1/*****************************************************************************
2 Freeciv - Copyright (C) 2005 - The Freeciv Project
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12*****************************************************************************/
13#ifndef FC__LUASCRIPT_FUNC_H
14#define FC__LUASCRIPT_FUNC_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
20/* utility */
21#include "support.h"
22
23struct fc_lua;
24
25void luascript_func_init(struct fc_lua *fcl);
26void luascript_func_free(struct fc_lua *fcl);
27
31void luascript_func_add_valist(struct fc_lua *fcl, const char *func_name,
32 bool required, int nargs, int nreturns,
33 va_list args);
34void luascript_func_add(struct fc_lua *fcl, const char *func_name,
35 bool required, int nargs, int nreturns, ...);
36bool luascript_func_call_valist(struct fc_lua *fcl, const char *func_name,
37 va_list args);
38bool luascript_func_call(struct fc_lua *fcl, const char *func_name, ...);
39
40bool luascript_func_is_required(struct fc_lua *fcl, const char *func_name);
41
42#ifdef __cplusplus
43}
44#endif /* __cplusplus */
45
46#endif /* FC__LUASCRIPT_FUNC_H */
char * incite_cost
Definition comments.c:76
bool luascript_func_call_valist(struct fc_lua *fcl, const char *func_name, va_list args)
bool luascript_func_check(struct fc_lua *fcl, struct strvec *missing_func_required, struct strvec *missing_func_optional)
void luascript_func_init(struct fc_lua *fcl)
void luascript_func_add(struct fc_lua *fcl, const char *func_name, bool required, int nargs, int nreturns,...)
bool luascript_func_call(struct fc_lua *fcl, const char *func_name,...)
void luascript_func_add_valist(struct fc_lua *fcl, const char *func_name, bool required, int nargs, int nreturns, va_list args)
bool luascript_func_is_required(struct fc_lua *fcl, const char *func_name)
void luascript_func_free(struct fc_lua *fcl)