mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
Cleanup.
This commit is contained in:
@@ -13,8 +13,4 @@
|
||||
|
||||
#include "dbg.h"
|
||||
|
||||
#if !BX_COMPILER_MSVC
|
||||
# define _strdup strdup
|
||||
#endif // !BX_COMPILER_MSVC
|
||||
|
||||
#endif // __TEST_H__
|
||||
|
||||
@@ -33,6 +33,10 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#if !BX_COMPILER_MSVC
|
||||
# define _strdup strdup
|
||||
#endif // !BX_COMPILER_MSVC
|
||||
|
||||
struct complex {
|
||||
complex() {data = 0;}
|
||||
complex(const char* s) { data = strdup(s); }
|
||||
@@ -156,7 +160,7 @@ TEST(vector_complex_popback) {
|
||||
v.push_back("24");
|
||||
|
||||
CHECK(v.back() == "24");
|
||||
|
||||
|
||||
v.pop_back();
|
||||
|
||||
CHECK(v.back() == "12");
|
||||
|
||||
Reference in New Issue
Block a user