mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Cleanup.
This commit is contained in:
@@ -87,6 +87,15 @@ project "bx.test"
|
|||||||
"Cocoa.framework",
|
"Cocoa.framework",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configuration { "wasm" }
|
||||||
|
buildoptions {
|
||||||
|
"-fwasm-exceptions",
|
||||||
|
}
|
||||||
|
linkoptions {
|
||||||
|
"-fwasm-exceptions",
|
||||||
|
"-s STACK_SIZE=262144",
|
||||||
|
}
|
||||||
|
|
||||||
configuration {}
|
configuration {}
|
||||||
|
|
||||||
strip()
|
strip()
|
||||||
|
|||||||
@@ -50,8 +50,6 @@
|
|||||||
# include <sys/syscall.h>
|
# include <sys/syscall.h>
|
||||||
# elif BX_PLATFORM_OSX
|
# elif BX_PLATFORM_OSX
|
||||||
# include <mach/mach.h> // mach_task_basic_info
|
# include <mach/mach.h> // mach_task_basic_info
|
||||||
# elif BX_PLATFORM_ANDROID
|
|
||||||
# include "debug.h" // getTid is not implemented...
|
|
||||||
# endif // BX_PLATFORM_ANDROID
|
# endif // BX_PLATFORM_ANDROID
|
||||||
#endif // BX_PLATFORM_
|
#endif // BX_PLATFORM_
|
||||||
|
|
||||||
@@ -65,7 +63,7 @@ namespace bx
|
|||||||
|| BX_PLATFORM_WINRT \
|
|| BX_PLATFORM_WINRT \
|
||||||
|| BX_CRT_NONE
|
|| BX_CRT_NONE
|
||||||
BX_UNUSED(_ms);
|
BX_UNUSED(_ms);
|
||||||
debugOutput("sleep is not implemented"); debugBreak();
|
BX_ASSERT(false, "Function '%s' is not implemented!", BX_FUNCTION);
|
||||||
#else
|
#else
|
||||||
timespec req = { (time_t)_ms/1000, (long)( (_ms%1000)*1000000) };
|
timespec req = { (time_t)_ms/1000, (long)( (_ms%1000)*1000000) };
|
||||||
timespec rem = { 0, 0 };
|
timespec rem = { 0, 0 };
|
||||||
@@ -80,7 +78,7 @@ namespace bx
|
|||||||
#elif BX_PLATFORM_XBOXONE \
|
#elif BX_PLATFORM_XBOXONE \
|
||||||
|| BX_PLATFORM_WINRT \
|
|| BX_PLATFORM_WINRT \
|
||||||
|| BX_CRT_NONE
|
|| BX_CRT_NONE
|
||||||
debugOutput("yield is not implemented"); debugBreak();
|
BX_ASSERT(false, "Function '%s' is not implemented!", BX_FUNCTION);
|
||||||
#else
|
#else
|
||||||
::sched_yield();
|
::sched_yield();
|
||||||
#endif // BX_PLATFORM_
|
#endif // BX_PLATFORM_
|
||||||
@@ -97,7 +95,7 @@ namespace bx
|
|||||||
|| BX_PLATFORM_OSX
|
|| BX_PLATFORM_OSX
|
||||||
return (mach_port_t)::pthread_mach_thread_np(pthread_self() );
|
return (mach_port_t)::pthread_mach_thread_np(pthread_self() );
|
||||||
#else
|
#else
|
||||||
debugOutput("getTid is not implemented"); debugBreak();
|
BX_ASSERT(false, "Function '%s' is not implemented!", BX_FUNCTION);
|
||||||
return 0;
|
return 0;
|
||||||
#endif // BX_PLATFORM_
|
#endif // BX_PLATFORM_
|
||||||
}
|
}
|
||||||
@@ -155,6 +153,7 @@ namespace bx
|
|||||||
);
|
);
|
||||||
return pmc.WorkingSetSize;
|
return pmc.WorkingSetSize;
|
||||||
#else
|
#else
|
||||||
|
BX_ASSERT(false, "Function '%s' is not implemented!", BX_FUNCTION);
|
||||||
return 0;
|
return 0;
|
||||||
#endif // BX_PLATFORM_*
|
#endif // BX_PLATFORM_*
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -130,6 +130,11 @@ TEST_CASE("FilePath temp", "[filepath]")
|
|||||||
tmp.join("bx.test/abvgd/555333/test");
|
tmp.join("bx.test/abvgd/555333/test");
|
||||||
REQUIRE(bx::makeAll(tmp, bx::ErrorAssert{}) );
|
REQUIRE(bx::makeAll(tmp, bx::ErrorAssert{}) );
|
||||||
|
|
||||||
|
if (BX_ENABLED(BX_PLATFORM_EMSCRIPTEN) )
|
||||||
|
{
|
||||||
|
SKIP("Not supported by wasm.");
|
||||||
|
}
|
||||||
|
|
||||||
tmp.set(bx::Dir::Temp);
|
tmp.set(bx::Dir::Temp);
|
||||||
tmp.join("bx.test");
|
tmp.join("bx.test");
|
||||||
REQUIRE(bx::removeAll(tmp, bx::ErrorAssert{}) );
|
REQUIRE(bx::removeAll(tmp, bx::ErrorAssert{}) );
|
||||||
|
|||||||
Reference in New Issue
Block a user