From e069948bef9ada2c317290108b31412b538110fc Mon Sep 17 00:00:00 2001 From: worktycho Date: Sun, 27 Apr 2014 20:57:47 +0100 Subject: Create CoverityModel.cpp --- CoverityModel.cpp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 CoverityModel.cpp (limited to 'CoverityModel.cpp') diff --git a/CoverityModel.cpp b/CoverityModel.cpp new file mode 100644 index 000000000..818aa95ca --- /dev/null +++ b/CoverityModel.cpp @@ -0,0 +1,5 @@ + +void tolua_error (lua_State* L, const char* msg, tolua_Error* err) +{ + __coverity_panic__(); +} -- cgit v1.2.3 From a303adca8b4b86bc67f6557328768b28232580e4 Mon Sep 17 00:00:00 2001 From: worktycho Date: Sun, 27 Apr 2014 13:03:34 -0700 Subject: Update CoverityModel.cpp --- CoverityModel.cpp | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'CoverityModel.cpp') diff --git a/CoverityModel.cpp b/CoverityModel.cpp index 818aa95ca..3ee6447ee 100644 --- a/CoverityModel.cpp +++ b/CoverityModel.cpp @@ -1,5 +1,17 @@ -void tolua_error (lua_State* L, const char* msg, tolua_Error* err) -{ - __coverity_panic__(); + +extern "C" { + struct lua_State; + struct tolua_Error + { + int index; + int array; + const char* type; + }; + + void tolua_error (lua_State* L, const char* msg, tolua_Error* err) + { + __coverity_panic__(); + } + } -- cgit v1.2.3