mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 08:05:58 +08:00
Fixed global namespace issue
This commit is contained in:
parent
3831802717
commit
03ad33cc8d
@ -16,10 +16,10 @@
|
||||
#include <sstream>
|
||||
#include <fstream>
|
||||
|
||||
static detail::JsonDocument JsonConstruct(const char* str)
|
||||
static tinygltf::detail::JsonDocument JsonConstruct(const char* str)
|
||||
{
|
||||
detail::JsonDocument doc;
|
||||
detail::JsonParse(doc, str, strlen(str));
|
||||
tinygltf::detail::JsonDocument doc;
|
||||
tinygltf::detail::JsonParse(doc, str, strlen(str));
|
||||
return doc;
|
||||
}
|
||||
|
||||
@ -275,9 +275,9 @@ TEST_CASE("parse-integer", "[bounds-checking]") {
|
||||
|
||||
err.clear();
|
||||
{
|
||||
detail::JsonDocument o;
|
||||
tinygltf::detail::JsonDocument o;
|
||||
double nan = std::numeric_limits<double>::quiet_NaN();
|
||||
tinygltf::detail::JsonAddMember(o, "int", detail::json(nan));
|
||||
tinygltf::detail::JsonAddMember(o, "int", tinygltf::detail::json(nan));
|
||||
CHECK_FALSE(tinygltf::ParseIntegerProperty(
|
||||
&result, &err, o,
|
||||
"int", true));
|
||||
@ -321,9 +321,9 @@ TEST_CASE("parse-unsigned", "[bounds-checking]") {
|
||||
|
||||
err.clear();
|
||||
{
|
||||
detail::JsonDocument o;
|
||||
tinygltf::detail::JsonDocument o;
|
||||
double nan = std::numeric_limits<double>::quiet_NaN();
|
||||
tinygltf::detail::JsonAddMember(o, "int", detail::json(nan));
|
||||
tinygltf::detail::JsonAddMember(o, "int", tinygltf::detail::json(nan));
|
||||
CHECK_FALSE(tinygltf::ParseUnsignedProperty(
|
||||
&result, &err, o,
|
||||
"int", true));
|
||||
|
708
tiny_gltf.h
708
tiny_gltf.h
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user