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

libFAUDES 2.32b --- 2024.03.01 --- c++ api documentaion by doxygen