summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2014-04-27 22:03:34 +0200
committerworktycho <work.tycho@gmail.com>2014-04-27 22:03:34 +0200
commita303adca8b4b86bc67f6557328768b28232580e4 (patch)
treecb8330a80451f8efab1ae7a709a6cbfd355c0be1
parentCreate CoverityModel.cpp (diff)
downloadcuberite-a303adca8b4b86bc67f6557328768b28232580e4.tar
cuberite-a303adca8b4b86bc67f6557328768b28232580e4.tar.gz
cuberite-a303adca8b4b86bc67f6557328768b28232580e4.tar.bz2
cuberite-a303adca8b4b86bc67f6557328768b28232580e4.tar.lz
cuberite-a303adca8b4b86bc67f6557328768b28232580e4.tar.xz
cuberite-a303adca8b4b86bc67f6557328768b28232580e4.tar.zst
cuberite-a303adca8b4b86bc67f6557328768b28232580e4.zip
Diffstat (limited to '')
-rw-r--r--CoverityModel.cpp18
1 files changed, 15 insertions, 3 deletions
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__();
+ }
+
}