• R/O
  • SSH
  • HTTPS

eirlua: コミット


コミットメタ情報

リビジョン9 (tree)
日時2018-02-07 07:58:04
作者quiret

ログメッセージ

- fixed a few issues relating to GCC and MSVC compatibility

変更サマリ

差分

--- src/ldebug.cpp (revision 8)
+++ src/ldebug.cpp (revision 9)
@@ -545,7 +545,7 @@
545545 case OP_FORPREP:
546546 checkreg(pt, a+3);
547547
548- [[fallthrough]]
548+ /* fallthrough */
549549 case OP_JMP:
550550 {
551551 check(b >= 0 || pc + 1 >= -b);
--- src/lobject.h (revision 8)
+++ src/lobject.h (revision 9)
@@ -1081,7 +1081,7 @@
10811081
10821082 #endif //LUA_USE_C_MACROS
10831083
1084-LUA_MAXALIGN class TString : public GCObject
1084+class LUA_MAXALIGN TString : public GCObject
10851085 {
10861086 public:
10871087 TString( global_State *g, void *construction_params );
@@ -1096,7 +1096,7 @@
10961096 size_t len;
10971097 };
10981098
1099-LUA_MAXALIGN class Udata : public GCObject
1099+class LUA_MAXALIGN Udata: public GCObject
11001100 {
11011101 public:
11021102 Udata( global_State *g, void *construction_params );
--- src/luaconf.h (revision 8)
+++ src/luaconf.h (revision 9)
@@ -614,13 +614,14 @@
614614 #include <string.h>
615615
616616 // Added special exception management (The_GTA)
617-class lua_exception : public std::exception
617+class lua_exception
618618 {
619619 public:
620- lua_exception( lua_State *L, unsigned int status, const char *msg, int startLevel = 0 ) : std::exception()
620+ lua_exception( lua_State *L, unsigned int status, const char *msg, int startLevel = 0 )
621621 {
622622 m_status = status;
623623 m_thread = L;
624+ m_what = msg;
624625
625626 if ( !lua_getstack( L, startLevel, &m_debug ) )
626627 {
旧リポジトリブラウザで表示