Skip to content
Permalink
Browse files

Anonymize Cached Win32 Window Caption (#1754)

Hide the redundant built-in global for caption polygonz added and put it in an anonymous namespace in the Win32 platform that uses it.
  • Loading branch information...
RobertBColton committed Jun 18, 2019
1 parent 1f4baaa commit ae3940d2c1f9524484dd3608f5e06cbae82fcd39
@@ -33,6 +33,12 @@
#include <string>
using namespace std;

namespace {

std::string current_caption = "";

} // anonymous namespace

namespace enigma
{

@@ -55,7 +55,6 @@ int room_last = 0;

int room_persistent = 0;
var room_caption = "";
var current_caption = "";

int background_color = 0xFFFFFF;
int background_showcolor=1;
@@ -98,7 +98,6 @@ extern int room_first;
extern int room_last;

extern var room_caption;
extern var current_caption;

int room_count();
#define room_count room_count()

0 comments on commit ae3940d

Please sign in to comment.
You can’t perform that action at this time.