22 lines
343 B
C++
22 lines
343 B
C++
|
|
#ifndef PLATFORM_WIN32_MSG_BUFFER_H
|
|
#define PLATFORM_WIN32_MSG_BUFFER_H
|
|
|
|
#include <Windows.h>
|
|
|
|
namespace sp {
|
|
|
|
#define WIN32_MSG_BUFFER_MAX_SIZE 64
|
|
|
|
struct Win32MsgBuffer {
|
|
int index;
|
|
MSG messages[WIN32_MSG_BUFFER_MAX_SIZE];
|
|
|
|
Win32MsgBuffer();
|
|
|
|
bool postMessage(MSG msg);
|
|
};
|
|
|
|
} // namespace sp
|
|
|
|
#endif /* PLATFORM_WIN32_MSG_BUFFER_H */
|