summaryrefslogtreecommitdiff
path: root/tolua/src/bin/lua
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-10-09 14:14:05 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2014-10-09 14:14:05 +0200
commit5c37d14e53c729c10d87849408058031d96d51f1 (patch)
treea7608265d23af6f4b60c701caacdea5babfb9d52 /tolua/src/bin/lua
parent773bcc7ccd52dc72114b293bba9dbca1e9ae054a (diff)
downloadcrawler-5c37d14e53c729c10d87849408058031d96d51f1.tar.gz
crawler-5c37d14e53c729c10d87849408058031d96d51f1.tar.bz2
backported C++ string handling from tolua++ to tolua
added test for string parameter in tolua test adapted google normalizer example in crawl.conf
Diffstat (limited to 'tolua/src/bin/lua')
-rw-r--r--tolua/src/bin/lua/basic.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/tolua/src/bin/lua/basic.lua b/tolua/src/bin/lua/basic.lua
index 26ceb4c..3c7f65f 100644
--- a/tolua/src/bin/lua/basic.lua
+++ b/tolua/src/bin/lua/basic.lua
@@ -29,6 +29,8 @@ _basic = {
['_cstring'] = 'string',
['_userdata'] = 'userdata',
['char*'] = 'string',
+ ['string'] = 'cppstring',
+ ['std::string'] = 'cppstring',
['void*'] = 'userdata',
['bool'] = 'boolean',
['lua_State*'] = 'state',
@@ -44,6 +46,7 @@ _basic_ctype = {
userdata = "void*",
boolean = "bool",
value = "int",
+ cppstring = 'const char*'
}
-- List of user defined types