Changeset 2248 for code/branches/buildsystem/src/tolua/lua
- Timestamp:
- Nov 22, 2008, 10:25:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem/src/tolua/lua/package.lua
r2239 r2248 250 250 -- open input file, if any 251 251 if fn then 252 local st, msg = readfrom(flags.f) 252 local file 253 if flags.f then 254 if string.sub(flags.f, 1, 1) == '/' or string.sub(flags.f, 1, 1) == '\\' then 255 file = flags.f 256 else 257 file = flags.w..'/'..flags.f 258 end 259 else 260 file = flags.f 261 end 262 local st, msg = readfrom(file) 253 263 if not st then 254 error('#'..msg )264 error('#'..msg..' path: '..flags.f) 255 265 end 256 266 local _; _, _, ext = strfind(fn,".*%.(.*)$")
Note: See TracChangeset
for help on using the changeset viewer.