This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
MyGameFramework/lib/gwen/gwen.cpp
Gered c5cdddbeaa initial commit
current versions of all of my basic framework sources, build configurations/scripts, and supporting assets
2013-01-31 12:53:05 -05:00

48 lines
860 B
C++

/*
GWEN
Copyright (c) 2010 Facepunch Studios
See license in Gwen.h
*/
#include "gwen.h"
#include <stdio.h>
#include <stdarg.h>
//#include "../../debug.h"
//#include "../../log.h"
namespace Gwen
{
// Globals
GWEN_EXPORT Controls::Base* HoveredControl = NULL;
GWEN_EXPORT Controls::Base* KeyboardFocus = NULL;
GWEN_EXPORT Controls::Base* MouseFocus = NULL;
namespace Debug
{
void Msg( const char* str, ... )
{
char strOut[1024];
va_list s;
va_start( s, str );
vsnprintf( strOut, sizeof(strOut), str, s );
va_end(s);
//GwenUtil_OutputDebugCharString( strOut );
//LOG_DEBUG("GWENUI", strOut);
}
void AssertCheck( bool b, const char* strMsg )
{
if ( b ) return;
Msg( "Assert: %s\n", strMsg );
#ifdef _WIN32
MessageBoxA( NULL, strMsg, "Assert", MB_ICONEXCLAMATION | MB_OK );
#endif
//BREAKPOINT;
}
}
}