Skip to content

Commit 0170fb3

Browse files
merge
1 parent 58a20d7 commit 0170fb3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pb.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
# pragma warning(disable: 4127) /* const in if condition */
88
#endif
99

10-
#define PB_STATIC_API
10+
//#define PB_STATIC_API
1111
#include "pb.h"
1212

1313
PB_NS_BEGIN
1414

1515

16-
#define LUA_LIB
16+
//#define LUA_LIB
17+
#define LUALIB_API PB_API
1718
#include <lua.h>
1819
#include <lauxlib.h>
1920

test.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ function _G.test_buffer()
841841
eq(#b, 6)
842842

843843
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
845845
fail("integer format error", function() pb.pack("v", 1e308) end)
846846
else
847847
fail("number has no integer representation", function() pb.pack("v", 1e308) end)

0 commit comments

Comments
 (0)