aseprite/src/she/system.cpp

32 lines
525 B
C++
Raw Normal View History

// SHE library
// Copyright (C) 2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
2016-11-18 23:26:43 +08:00
#include "base/debug.h"
#include "she/system.h"
namespace she {
static System* g_system = nullptr;
System* create_system_impl(); // Defined on each back-end
System* create_system()
{
ASSERT(!g_system);
return g_system = create_system_impl();
}
System* instance()
{
return g_system;
}
} // namespace she