lbp_addons.h
Go to the documentation of this file.
1/** @file lbp_addons.cpp 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_LBP_ADDONS_H
25#define FAUDES_LBP_ADDONS_H
26
27// incl faude base for FAUDES_API
28#include "corefaudes.h"
29
30// forward
31struct lua_State;
32
33namespace faudes{
34
35// overall loader to initialize kernel
36extern FAUDES_API void faudes_initialize(lua_State* pL);
37
38// track last line in interpreter
39extern FAUDES_API std::string faudes_lastline;
40
41// register faudes console variant for print
42extern FAUDES_API void faudes_print_register(lua_State* L);
43
44// register faudes LoopCallback() as line hook
45extern FAUDES_API void faudes_hook_register(lua_State* L);
46
47// load extension
48extern int FAUDES_API faudes_loadext(lua_State* pL, const char* filename);
49extern int FAUDES_API faudes_loaddefext(lua_State* pL, const char* arg0);
50
51// interface to completer
52extern FAUDES_API char **faudes_complete(lua_State* pL, const char *text, int start, int end);
53
54
55}// namespace
56#endif
57
58
#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.33k --- 2025.09.16 --- c++ api documentaion by doxygen