Changeset 5752 for code/trunk/src/external/tolua/lua
- Timestamp:
- Sep 20, 2009, 2:58:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/external/tolua/lua/package.lua
r5738 r5752 127 127 128 128 if flags.H then 129 local header = gsub(flags.H, '^.-([%w_]*%.[%w_]*)$', '%1') 130 local package_lower = string.lower(self.name) 131 output('#include "'..header..'"\n') 129 output('#include "'..flags.H..'"\n') 132 130 end 133 131 … … 204 202 205 203 if flags.H then 206 local package_lower = string.lower(self.name) 207 output('#include "'..package_lower..'/'..self.name..'Prereqs.h"\n') 204 output('#include "'..flags.w..'/'..self.name..'Prereqs.h"\n') 208 205 output('/* Exported function */') 209 206 output('_'..self.name..'Export') … … 222 219 -- *** Thanks to Ariel Manzur for fixing bugs in nested directives *** 223 220 function extract_code(fn,s) 224 local code = '\n$#include "'.. string.lower(flags.n)..'/'..fn..'"\n'221 local code = '\n$#include "'..flags.w..'/'..fn..'"\n' 225 222 s= "\n" .. s .. "\n" -- add blank lines as sentinels 226 223
Note: See TracChangeset
for help on using the changeset viewer.