File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 7
7
# pragma warning(disable: 4127) /* const in if condition */
8
8
#endif
9
9
10
- #define PB_STATIC_API
10
+ // #define PB_STATIC_API
11
11
#include "pb.h"
12
12
13
13
PB_NS_BEGIN
14
14
15
15
16
- #define LUA_LIB
16
+ //#define LUA_LIB
17
+ #define LUALIB_API PB_API
17
18
#include <lua.h>
18
19
#include <lauxlib.h>
19
20
Original file line number Diff line number Diff line change @@ -841,7 +841,7 @@ function _G.test_buffer()
841
841
eq (# b , 6 )
842
842
843
843
fail (" integer format error: 'foo'" , function () pb .pack (" v" , " foo" ) end )
844
- if _VERSION == " Lua 5.3" or _VERSION == " Lua 5.4" then
844
+ if _VERSION == " Lua 5.3" or _VERSION == " Lua 5.4" or _VERSION == " Ravi 5.3 " then
845
845
fail (" integer format error" , function () pb .pack (" v" , 1e308 ) end )
846
846
else
847
847
fail (" number has no integer representation" , function () pb .pack (" v" , 1e308 ) end )
You can’t perform that action at this time.
0 commit comments