consistent lua binding name (nil is a reserved word in lua)
This commit is contained in:
parent
00ecc545bc
commit
165ae0863a
|
@ -31,17 +31,14 @@
|
|||
namespace ARDOUR { namespace LuaAPI {
|
||||
|
||||
/** convenience contructor for DataType::NIL
|
||||
* @param lua ignored
|
||||
* @returns DataType::NIL
|
||||
*/
|
||||
int datatype_ctor_nil (lua_State *lua);
|
||||
int datatype_ctor_null (lua_State *lua);
|
||||
/** convenience contructor for DataType::AUDIO
|
||||
* @param lua ignored
|
||||
* @returns DataType::AUDIO
|
||||
*/
|
||||
int datatype_ctor_audio (lua_State *L);
|
||||
/** convenience contructor for DataType::MIDI
|
||||
* @param lua ignored
|
||||
* @returns DataType::MIDI
|
||||
*/
|
||||
int datatype_ctor_midi (lua_State *L);
|
||||
|
|
|
@ -37,7 +37,7 @@ using namespace PBD;
|
|||
using namespace std;
|
||||
|
||||
int
|
||||
ARDOUR::LuaAPI::datatype_ctor_nil (lua_State *L)
|
||||
ARDOUR::LuaAPI::datatype_ctor_null (lua_State *L)
|
||||
{
|
||||
DataType dt (DataType::NIL);
|
||||
luabridge::Stack <DataType>::push (L, dt);
|
||||
|
|
|
@ -489,7 +489,7 @@ LuaBindings::common (lua_State* L)
|
|||
|
||||
.beginClass <DataType> ("DataType")
|
||||
.addConstructor <void (*) (std::string)> ()
|
||||
.addStaticCFunction ("null", &LuaAPI::datatype_ctor_nil) // "nil" is a lua reseved word
|
||||
.addStaticCFunction ("null", &LuaAPI::datatype_ctor_null) // "nil" is a lua reseved word
|
||||
.addStaticCFunction ("audio", &LuaAPI::datatype_ctor_audio)
|
||||
.addStaticCFunction ("midi", &LuaAPI::datatype_ctor_midi)
|
||||
.endClass()
|
||||
|
|
Loading…
Reference in New Issue