lbp_addons.h
Go to the documentation of this file.
1/** @file lbp_addons.h add-ons for Lua integration */
2
3/*
4FAU Discrete Event Systems Library (libfaudes)
5
6Copyright (C) 2023, 2025 Thomas Moor
7
8This library is free software; you can redistribute it and/or
9modify it under the terms of the GNU Lesser General Public
10License as published by the Free Software Foundation; either
11version 2.1 of the License, or (at your option) any later version.
12
13This library is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16Lesser General Public License for more details.
17
18You should have received a copy of the GNU Lesser General Public
19License along with this library; if not, write to the Free Software
20Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
22*/
23
24#ifndef FAUDES_MUTE_LUA
25
26#ifndef FAUDES_LBP_ADDONS_H
27#define FAUDES_LBP_ADDONS_H
28
29// incl faude base for FAUDES_API
30#include "corefaudes.h"
31
32// forward
33struct lua_State;
34
35namespace faudes{
36
37// overall loader to initialize kernel
38extern FAUDES_API void faudes_initialize(lua_State* pL);
39
40// track last line in interpreter
41extern FAUDES_API std::string faudes_lastline;
42
43// register faudes console variant for print
44extern FAUDES_API void faudes_print_register(lua_State* L);
45
46// register faudes LoopCallback() as line hook
47extern FAUDES_API void faudes_hook_register(lua_State* L);
48
49// load extension
50extern int FAUDES_API faudes_loadext(lua_State* pL, const char* filename);
51extern int FAUDES_API faudes_loaddefext(lua_State* pL, const char* arg0);
52
53// interface to completer
54extern FAUDES_API char **faudes_complete(lua_State* pL, const char *text, int start, int end);
55
56
57}// namespace
58#endif
59#endif
#define FAUDES_API
void faudes_hook_register(lua_State *L)
int faudes_loadext(lua_State *pL, const char *filename)
FAUDES_API std::string faudes_lastline
void faudes_initialize(lua_State *pL)
char ** faudes_complete(lua_State *pL, const char *text, int start, int end)
int faudes_loaddefext(lua_State *pL, const char *arg0)
void faudes_print_register(lua_State *L)

libFAUDES 2.34d --- 2026.03.11 --- c++ api documentaion by doxygen