[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: how to wrap int Init(int argc, char** argv) in luajit with ffi?
- From: Erik Lindroos <gliptic@...>
- Date: Thu, 24 Feb 2011 15:27:07 +0100
On Thu, Feb 24, 2011 at 2:15 PM, zhiguo zhao <email@example.com>
After some test, I get this solution.
local args = ffi.new('const char*')
args = arg
args = nil
Is this right.
If arg is kept alive during the call.