Ardour  9.0-pre0-844-g046623df59
luasignal.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Robin Gareus <robin@gareus.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 #ifndef _luasignal_h_
19 #define _luasignal_h_
20 
21 #include <string>
22 
23 namespace LuaSignal {
24 
25 #define ENGINE(name,c) name,
26 #define STATIC(name,c) name,
27 #define SESSION(name,c) name,
28 
29  enum LuaSignal {
30 # include "luasignal_syms.inc.h"
32  };
33 
34 #undef ENGINE
35 #undef SESSION
36 #undef STATIC
37 
38 extern const char *luasignalstr[];
39 inline const char* enum2str (LuaSignal i) { return luasignalstr[i]; }
40 LuaSignal str2luasignal (const std::string &);
41 
42 } // namespace
43 #endif
const char * enum2str(LuaSignal i)
Definition: luasignal.h:39
const char * luasignalstr[]
@ LAST_SIGNAL
Definition: luasignal.h:31
LuaSignal str2luasignal(const std::string &)