Fixed Visual Studio build + updated makefiles

This commit is contained in:
Ondrej Stava 2017-08-01 11:37:58 -07:00
parent 4503028fb7
commit 7c8cd74271
4 changed files with 3 additions and 15 deletions

View File

@ -36,7 +36,6 @@ if (ENABLE_MESH_COMPRESSION)
endif ()
endif ()
# Turn on more compiler warnings.
if (ENABLE_EXTRA_WARNINGS)
if (MSVC)

View File

@ -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

View File

@ -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

View File

@ -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) \