mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Truly, I am a spectacular idiot...
This commit is contained in:
parent
89107d3b90
commit
8c9c662d97
|
@ -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-09-19 04:36:16.270592 UTC
|
// Generated 2016-09-19 05:17:09.304397 UTC
|
||||||
// This header was generated with sol v2.14.2 (revision 431c629)
|
// This header was generated with sol v2.14.2 (revision 89107d3)
|
||||||
// https://github.com/ThePhD/sol2
|
// https://github.com/ThePhD/sol2
|
||||||
|
|
||||||
#ifndef SOL_SINGLE_INCLUDE_HPP
|
#ifndef SOL_SINGLE_INCLUDE_HPP
|
||||||
|
@ -11739,7 +11739,7 @@ namespace sol {
|
||||||
function_result script_file(const std::string& filename) {
|
function_result script_file(const std::string& filename) {
|
||||||
int index = (::std::max)(lua_gettop(L), 1);
|
int index = (::std::max)(lua_gettop(L), 1);
|
||||||
stack::script_file(L, filename);
|
stack::script_file(L, filename);
|
||||||
int returns = lua_gettop(L) - index;
|
int returns = lua_gettop(L) - (index - 1);
|
||||||
return function_result(L, index, returns);
|
return function_result(L, index, returns);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -232,7 +232,7 @@ namespace sol {
|
||||||
function_result script_file(const std::string& filename) {
|
function_result script_file(const std::string& filename) {
|
||||||
int index = (::std::max)(lua_gettop(L), 1);
|
int index = (::std::max)(lua_gettop(L), 1);
|
||||||
stack::script_file(L, filename);
|
stack::script_file(L, filename);
|
||||||
int returns = lua_gettop(L) - index;
|
int returns = lua_gettop(L) - (index - 1);
|
||||||
return function_result(L, index, returns);
|
return function_result(L, index, returns);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user