[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How to implement this with LuaMacro?
- From: Doug Rogers <doug.rogers@...>
- Date: Fri, 22 Jan 2010 16:01:09 -0500
Pavel Shevaev wrote:
> On Fri, Jan 22, 2010 at 3:53 PM, Peter Cawley <firstname.lastname@example.org> wrote:
>> On Fri, Jan 22, 2010 at 12:51 PM, Pavel Shevaev <email@example.com> wrote:
>>> While I know how to require 'macro'
>>> library before any parsing in cli mode(using -l switch) I don't know
>>> how to achieve it using Lua C api.
>> You can just do a literal translation of require"macro" into the C API:
>> lua_getglobal(L, "require");
>> lua_pushliteral(L, "macro");
>> lua_call(L, 1, 0);
> It worked like a charm. Thank you all guys for being nice with a n00bie ;)
Asking about using the C API to run 'require' in order to Lua macros
running from the C side... that's not a very typical combination of
A little off topic, but I'm curious about PARAL and SEQ. Is this an
interface to a language/model that supports explicitly specifying
parallel/sequential code? Do you have a link to some context for your AI
use case? Googling results in a flood of hits.
The information contained in this email transmission may contain proprietary and business
sensitive information. If you are not the intended recipient, you are hereby notified that
any review, dissemination, distribution or duplication of this communication is strictly
prohibited. Unauthorized interception of this e-mail is a violation of law. If you are not
the intended recipient, please contact the sender by reply email and immediately destroy all
copies of the original message.
Any technical data and/or information provided with or in this email may be subject to U.S.
export controls law. Export, diversion or disclosure contrary to U.S. law is prohibited.
Such technical data or information is not to be exported from the U.S. or given to any foreign
person in the U.S. without prior written authorization of Elbit Systems of America and the
appropriate U.S. Government agency.