mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-06 23:15:47 -07:00
* Fixed some bugs with incorrect macro usage (SDL_BYTE_ORDER vs
SDL_BYTEORDER, {MSC,GCC}_VER vs {MSC,GCC}_VERSION, OS_WIN/OS_UNIX in
projects where they're not defined).
* Removed some redundant declarations of g_Console.
* Removed some unnecessary semicolons.
* Removed some unused variables.
* Added throw specification to operator new.
This was SVN commit r4698.
20 lines
384 B
C++
20 lines
384 B
C++
#include "stdafx.h"
|
|
|
|
#include "AtlasClipboard.h"
|
|
|
|
// TODO: Do this properly, using the native clipboard. (That probably
|
|
// requires AtObj to be serialisable, though... Maybe just use XML?)
|
|
|
|
static AtObj g_Clipboard;
|
|
|
|
bool AtlasClipboard::SetClipboard(AtObj& in)
|
|
{
|
|
g_Clipboard = in;
|
|
return true;
|
|
}
|
|
|
|
bool AtlasClipboard::GetClipboard(AtObj& out)
|
|
{
|
|
out = g_Clipboard;
|
|
return true;
|
|
}
|