mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
update single
This commit is contained in:
parent
c9728b7e27
commit
8c8c7d1ee1
|
@ -20,8 +20,8 @@
|
||||||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// This file was generated with a script.
|
// This file was generated with a script.
|
||||||
// Generated 2016-10-30 08:39:55.311816 UTC
|
// Generated 2016-10-30 09:59:20.343998 UTC
|
||||||
// This header was generated with sol v2.14.12 (revision 76cae57)
|
// This header was generated with sol v2.14.12 (revision c9728b7)
|
||||||
// https://github.com/ThePhD/sol2
|
// https://github.com/ThePhD/sol2
|
||||||
|
|
||||||
#ifndef SOL_SINGLE_INCLUDE_HPP
|
#ifndef SOL_SINGLE_INCLUDE_HPP
|
||||||
|
@ -12117,6 +12117,16 @@ namespace sol {
|
||||||
return require_core(key, [this, &filename]() {stack::script_file(L, filename); }, create_global);
|
return require_core(key, [this, &filename]() {stack::script_file(L, filename); }, create_global);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected_function_result do_string(const std::string& code) {
|
||||||
|
sol::protected_function pf = load(code);
|
||||||
|
return pf();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected_function_result do_file(const std::string& filename) {
|
||||||
|
sol::protected_function pf = load_file(filename);
|
||||||
|
return pf();
|
||||||
|
}
|
||||||
|
|
||||||
function_result script(const std::string& code) {
|
function_result script(const std::string& code) {
|
||||||
int index = (::std::max)(lua_gettop(L), 1);
|
int index = (::std::max)(lua_gettop(L), 1);
|
||||||
stack::script(L, code);
|
stack::script(L, code);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user