mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-08 07:28:22 -10:00
This adds a utility library for handling all the nasty lua referencing stuff. It also provides functions for convienent usage of lua objects such as tables and functions which allows to use them directly from C++ code without using the ugly Lua C-API.
18 lines
313 B
C++
18 lines
313 B
C++
#ifndef LUA_EXCEPTION_H
|
|
#define LUA_EXCEPTION_H
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <stdexcept>
|
|
|
|
namespace luacpp {
|
|
/**
|
|
* @brief An exception within lua
|
|
*/
|
|
class LuaException: public std::runtime_error {
|
|
public:
|
|
LuaException(const std::string& __arg = "Lua Error!") : runtime_error(__arg) {}
|
|
};
|
|
}
|
|
|
|
#endif |