[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Making a modifiable copy of a string in C
- From: Andrew Gierth <andrew@...>
- Date: Sun, 07 Apr 2019 13:10:10 +0100
>>>>> "Viacheslav" == Viacheslav Usov <via.usov@gmail.com> writes:
Viacheslav> If you need this to pass optional flags, I would instead
Viacheslav> consider passing them as multiple arguments, so that the
Viacheslav> Lua code could do this:
Viacheslav> dlopen('whatever') -- no flags
Viacheslav> dlopen('whatever ', 'lazy')
Viacheslav> dlopen('whatever ', 'lazy', 'global')
or use a table:
dlopen('whatever', { lazy = true, global = true })
or,
dlopen{ module = 'whatever', lazy = true }
--
Andrew.