Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[Core] Add default constructors for VALUE_WITH_TYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
wqyfavor committed Mar 7, 2019
1 parent 1880b4b commit ad618cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions weex_core/Source/include/WeexApiValue.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,9 @@ typedef union ExecJsParamValue {
typedef struct ValueWithType {
ParamsType type;
EXEC_JS_PARAM_VALUE value;

ValueWithType(): type(ParamsType::JSUNDEFINED) {}

// ValueWithType((int32_t)-1) normally represents failure for call native weex jsframework
ValueWithType(int32_t intValue): type(ParamsType::INT32), value({.int32Value = intValue}) {}
} VALUE_WITH_TYPE;

0 comments on commit ad618cf

Please sign in to comment.