All Content
Blogs
Forums
News
Tutorials
Log In
Sign Up
Login
Username / Email
Password
Remember me
Forgot password?
Login
or
Don't have a GameDev.net account?
Sign up
Forgot your password?
Email Address
Reset Password
Please contact us if you have any trouble resetting your password.
Home
Blogs
Forums
News
Portfolios
Projects
Tutorials
32
users logged in
New?
Learn about game development
.
Before posting, review our
community guidelines
.
Follow Us
Chat in the
GameDev.net Discord!
Mastodon
Back to Engines and Middleware
Calling a function in Lua 5.0 from C++
Engines and Middleware
Programming
Started by
Chocoboko
June 28, 2003 05:03 PM
0
comments, last by
Chocoboko
20 years, 10 months ago
Chocoboko
124
Author
June 28, 2003 05:03 PM
Hi, I am trying to call a function in my Lua script from C++. Here is the Lua code: function callev(x) ev[x].i=ev[x].i + 1; c=ev[x].i; ev[x]:e(); end How could I call "callev" from my C++ code? Thanks.
Cancel
Save
Advertisement
Kylotan
10,512
June 29, 2003 05:04 PM
http://www.lua.org/manual/5.0/manual.html#3.14
It''s cryptic, but what you need is there.
Cancel
Save
This topic is closed to new replies.
Advertisement
Popular Topics
Can AI Tools Streamline Game Development?
For Beginners
Avoiding other units without using pathfinding
General and Gameplay Programming
I need help about my client netcode
Networking and Multiplayer
Quake 1 source code triangle rasterization
General and Gameplay Programming
ARM64 Native Calling Convention Return Issue on Apple Silicon
AngelCode
How to build race game
For Beginners
Advertisement
Recommended Tutorials
Breaking Out of Breakout
Game Design and Theory
Code on the Cob Part 7
General and Gameplay Programming
How to Become Numbers-Driven With Profile Analyzer
General and Gameplay Programming
The Case for Score Systems in Single-Player Strategy Games
Game Design and Theory
A Simple Fast Resource Manager using C++ and STL
General and Gameplay Programming
Reticulating splines
About GameDev.net
Community Guidelines
Terms of Service
Privacy Policy
Contact Us
Copyright (c) 1999-2024 GameDev.net, LLC
Back to Top