🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

.cpp scripts?

Started by
3 comments, last by t0mz123 20 years, 11 months ago
Is there anyway I can set up a game so that it will transfer execution to an interpreter that will execute C++ code in a .cpp file? basically, is there anyway I can hard code my game scripts in C++ without having to compile them (so that I can change them very easily)?
Advertisement
... no? hardcode without compiling, that just doesn''t make sense. use &#106avascript its almost exactly c++.
but if i use &#106avascript, i still need an interpreter, right?

so why can''t i just use c++ and find a c++ interpreter that I could use? the question is where do i get the c++ interpreter (like a lite version).... unless i am missing the point entirely... you do need still need an interpreter for &#106avascript, right?<br><br>this is the &#111;nly part of my project that i''m still unsure of how to approach
Either way ou''d need to add an interpeter to you project. There is a C(++?) interpeter, although I don''t have a link. Try googling for it.

Heh, I checked.. amazing type "C++ interpreter" in google top two links are the two different C++ interpreters I was thinking of..

http://root.cern.ch/root/Cint.html

and

http://www.softintegration.com/

I believe Cint might be more along the lines of what your looking for though.
sweet thanks man

This topic is closed to new replies.

Advertisement