comp.lang.ada
 help / color / mirror / Atom feed
From: Florian Weimer <fw@deneb.enyo.de>
Subject: Re: Please help with my lua binding
Date: Wed, 02 Jan 2013 20:31:11 +0100
Date: 2013-01-02T20:31:11+01:00	[thread overview]
Message-ID: <87pq1n9ybk.fsf@mid.deneb.enyo.de> (raw)
In-Reply-To: 38857635-8ab5-4ff6-b547-f40ac31720a2@googlegroups.com

* > I tried to define it as:
>
> type lua_State is access lua_State;
> pragma Import (C, lua_State, "lua_State");

   type lua_State is private;

And then:

   type lua_State is new System.Address;

It's not 100% correct, but I'm pretty sure it works on all GCC-based
platforms support by GNAT.



  parent reply	other threads:[~2013-01-02 19:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-02 18:46 Please help with my lua binding Patrick
2013-01-02 19:03 ` Patrick
2013-01-02 19:31 ` Florian Weimer [this message]
2013-01-02 19:46 ` Florian Weimer
2013-01-02 19:55   ` Patrick
2013-01-02 20:08     ` Simon Wright
2013-01-03  5:51       ` Jeffrey Carter
2013-01-03  9:03         ` Simon Wright
2013-01-03  9:45           ` Florian Weimer
2013-01-02 20:08     ` Florian Weimer
2013-01-02 22:37       ` Patrick
2013-01-02 23:17       ` Patrick
2013-01-03  7:08         ` Patrick
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox