Skip to content

Commit

Permalink
Merge pull request #12955 from JuliaLang/tk/static_assert
Browse files Browse the repository at this point in the history
Remove definition for static_assert in C++ mode
  • Loading branch information
tkelman committed Sep 6, 2015
2 parents abdd074 + 94e41bc commit a63e79f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ static jl_value_t *scm_to_julia_(value_t e, int eo)
return temp;
}
jl_value_t *scmv = NULL, *temp = NULL;
JL_GC_PUSH(&scmv);
JL_GC_PUSH1(&scmv);
if (sym == label_sym) {
scmv = scm_to_julia_(car_(e),0);
temp = jl_new_struct(jl_labelnode_type, scmv);
Expand Down
6 changes: 1 addition & 5 deletions src/jl_uv.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@
#endif

#ifndef static_assert
# ifdef __cplusplus
# if __cplusplus < 201103L
# define static_assert(...)
# endif
# else
# ifndef __cplusplus
# define static_assert(...)
// Remove the following gcc special handling when we officially requires
// gcc 4.7 (for c++11) and -std=gnu11
Expand Down
1 change: 0 additions & 1 deletion src/julia.h
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,6 @@ int jl_is_type(jl_value_t *v);
DLLEXPORT int jl_is_leaf_type(jl_value_t *v);
DLLEXPORT int jl_has_typevars(jl_value_t *v);
DLLEXPORT int jl_subtype(jl_value_t *a, jl_value_t *b, int ta);
int jl_type_morespecific(jl_value_t *a, jl_value_t *b);
DLLEXPORT int jl_types_equal(jl_value_t *a, jl_value_t *b);
DLLEXPORT jl_value_t *jl_type_union(jl_svec_t *types);
jl_value_t *jl_type_union_v(jl_value_t **ts, size_t n);
Expand Down

0 comments on commit a63e79f

Please sign in to comment.