mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-10 04:48:57 +08:00
Fixed Visual Studio build + updated makefiles
This commit is contained in:
parent
4503028fb7
commit
7c8cd74271
@ -36,7 +36,6 @@ if (ENABLE_MESH_COMPRESSION)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
|
||||
# Turn on more compiler warnings.
|
||||
if (ENABLE_EXTRA_WARNINGS)
|
||||
if (MSVC)
|
||||
|
@ -38,7 +38,6 @@ endif
|
||||
#########
|
||||
|
||||
DEFINES := $(DRACO_CONFIG_DEFINES)
|
||||
DEFINES += -DDRACO_INTERNAL_1_0_0
|
||||
INCLUDES := -I../../ -I./ -I./src/
|
||||
SRCDIR := src/draco
|
||||
OBJDIR := obj
|
||||
|
@ -38,7 +38,6 @@ endif
|
||||
#########
|
||||
|
||||
DEFINES := $(DRACO_CONFIG_DEFINES)
|
||||
DEFINES += -DDRACO_INTERNAL_1_0_0
|
||||
INCLUDES := -I../../ -I./ -I./src/
|
||||
SRCDIR := src/draco
|
||||
OBJDIR := obj
|
||||
|
@ -58,22 +58,13 @@ class StatusOr {
|
||||
};
|
||||
|
||||
// In case StatusOr<T> is ok(), this macro assigns value stored in StatusOr<T>
|
||||
// to |lhs|, otherwise it returns the error Status. |error_expression| can be
|
||||
// used to provide custom return expressions.
|
||||
// to |lhs|, otherwise it returns the error Status.
|
||||
//
|
||||
// DRACO_ASSIGN_OR_RETURN(lhs, expression)
|
||||
// DRACO_ASSIGN_OR_RETURN(lhs, expression, error_expression);
|
||||
//
|
||||
#define DRACO_ASSIGN_OR_RETURN(...) \
|
||||
DRACO_SELECT_NTH_FROM_3(__VA_ARGS__, DRACO_ASSIGN_OR_RETURN_3_, \
|
||||
DRACO_ASSIGN_OR_RETURN_2_) \
|
||||
(__VA_ARGS__)
|
||||
#define DRACO_ASSIGN_OR_RETURN_2_(lhs, expression) \
|
||||
DRACO_ASSIGN_OR_RETURN_3_(lhs, expression, _status)
|
||||
|
||||
#define DRACO_ASSIGN_OR_RETURN_3_(lhs, expression, error_expression) \
|
||||
#define DRACO_ASSIGN_OR_RETURN(lhs, expression) \
|
||||
DRACO_ASSIGN_OR_RETURN_IMPL_(DRACO_MACROS_IMPL_CONCAT_(_statusor, __LINE__), \
|
||||
lhs, expression, error_expression)
|
||||
lhs, expression, _status)
|
||||
|
||||
// The actual implementation of the above macro.
|
||||
#define DRACO_ASSIGN_OR_RETURN_IMPL_(statusor, lhs, expression, error_expr) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user