Changeset 2236 for code/branches/buildsystem/src/tolua/lua/package.lua
- Timestamp:
- Nov 20, 2008, 8:51:44 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem/src/tolua/lua/package.lua
r2234 r2236 124 124 output('#endif\n') 125 125 output('#include "string.h"\n\n') 126 output('#include "tolua/tolua++.h"\n\n') 127 128 if not flags.h then 129 -- local temp = string.reverse(flags.H) 130 -- local start1, end1 = string.find(temp, '/') 131 -- local start2, end2 = string.find(temp, '\\') 132 -- local res 133 -- if not start1 == nil then 134 -- if not start2 == nil then 135 -- if start1 > start2 then 136 -- res = string.sub(temp, 1, start2) 137 -- else 138 -- res = string.sub(temp, 1, start1) 139 -- end 140 -- else 141 -- res = string.sub(temp, 1, start1) 142 -- end 143 -- elseif not start2 == nil then 144 -- res = string.sub(temp, 1, start2) 145 -- end 146 -- res = string.reverse(res) 147 output('#include "tolua_bind.h"') 148 output('\n') 126 output('#include "tolua++.h"\n\n') 127 128 if flags.H then 129 local header = gsub(flags.H, '^.-([%w_]*%.[%w_]*)$', '%1') 130 output('#include "'..header..'"\n') 149 131 end 150 132 … … 220 202 output('*/\n\n') 221 203 222 if not flags.hthen204 if flags.H then 223 205 output('#include "'..self.name..'Prereqs.h"\n') 224 206 output('/* Exported function */') 225 output('_'..self.name..'Export int tolua_'..self.name..'_open (lua_State* tolua_S);') 207 output('_'..self.name..'Export') 208 output('int tolua_'..self.name..'_open (lua_State* tolua_S);') 226 209 output('\n') 227 210 end
Note: See TracChangeset
for help on using the changeset viewer.