www.pudn.com > zfxcengine-0.1.0.zip > SharedLibExports.cpp
/* $Id */
////////////////////////////////////////////////////////////////////////////////
//
// Module: Input
// File: SharedLibsExports.h
// Created: 25.08.2005 02:04:37
// Author: Florian Bauer aka Florianx
//
// Last Change: 25.08.2005 02:04:37
//
////////////////////////////////////////////////////////////////////////////////
#include "Core/ceDef.h"
#include "Core/ceDebug.h"
#include "Core/ceExceptions.h"
#include "Input/InputSDL/ceInputSystem_SDL.h"
using namespace ZFXCE;
extern "C" EXPORTS void CreateSystem(Input::ceInputSystem** ppSys)
{
PUSH_FUNCTION;
if(NULL == *ppSys)
{
if((*ppSys = new Input::ceInputSystemSDL()) == NULL)
CE_EXCEPTION("CreateSystem(ceInputSystemSDL) failed.", 2);
}
}
extern "C" EXPORTS void ReleaseSystem(Input::ceInputSystem** ppSys)
{
PUSH_FUNCTION;
if (NULL != *ppSys)
delete *ppSys;
*ppSys = NULL;
}