mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
Use full path in #include guard, to avoid name clashes; also, to declare constants, enum is preferred over #define (causes less hard-to-debug errors)
svn-id: r22885
This commit is contained in:
parent
e44e5d9be0
commit
cb50b454e7
@ -20,16 +20,15 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef ACTIONS_H
|
||||
#define ACTIONS_H
|
||||
#ifndef GUI_ACTIONS_H
|
||||
#define GUI_ACTIONS_H
|
||||
|
||||
#include "common/stdafx.h"
|
||||
#include "common/scummsys.h"
|
||||
#include "common/system.h"
|
||||
#include "gui/Key.h"
|
||||
namespace GUI {
|
||||
|
||||
#define MAX_ACTIONS 20
|
||||
namespace GUI {
|
||||
|
||||
typedef int ActionType;
|
||||
|
||||
@ -69,6 +68,10 @@ protected:
|
||||
Actions();
|
||||
|
||||
protected:
|
||||
enum {
|
||||
MAX_ACTIONS = 20
|
||||
};
|
||||
|
||||
static Actions* _instance;
|
||||
OSystem *_mainSystem;
|
||||
Key _key_action[MAX_ACTIONS + 1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user