#ifndef BROWSER_WINDOW_WIN32_H
#define BROWSER_WINDOW_WIN32_H
#ifdef __cplusplus
extern "C" {
#endif
#include <assert.h>
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include "err.h"
#include "string.h"
#define BW_WIN32_ASSERT_ERROR \
{ bw_win32_print_error(); assert(0); }
#define BW_WIN32_ASSERT_HRESULT( HRESULT ) \
{ bw_win32_print_hresult_error( HRESULT ); assert(0); }
char* bw_win32_copyWstrAsNewCstr( const WCHAR* str );
char* bw_win32_copyAsNewCstr( bw_CStrSlice str );
WCHAR* bw_win32_copyAsNewWstr( bw_CStrSlice str );
void bw_win32_print_error();
void bw_win32_print_hresult_error( HRESULT hresult );
bw_Err bw_win32_unhandledHresult( HRESULT hresult );
#ifdef __cplusplus
} #endif
#endif