Jump to content

Lua translate in C


Gabriel
 Share

Recommended Posts

LuaToCee is not a converter, I wonder what use a "LuaToCee"? ;-)

 

I would translate the Lua code in C

 

function blabla (foo)
foo = foo + 1
return foo

in

foo_type bblabla(foo foo_type)
{
foo = foo + 1;
return foo;
}

 

Thank ;-)

 

Gabriel

Link to comment
Share on other sites

Do it manually. If there was a converter out there , which I don't think there is. I can't imagine it being efficient because it would be limiting the c++. Eg. No use of STL etc.

STS - Scarlet Thread Studios

AKA: Engineer Ken

 

Fact: Game Development is hard... very bloody hard.. If you are not prepared to accept that.. Please give up now!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...