Skip to content

Commit

Permalink
source parity for unary plus
Browse files Browse the repository at this point in the history
  • Loading branch information
nddrylliog committed Nov 19, 2013
1 parent 4b596e3 commit 196558b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/nagaqueen/OocListener.ooc
Expand Up @@ -708,7 +708,7 @@ FuncArgType: enum {
* Unary operators
*/
UnOpType: enum {
not, bNot, uMinus
not, bNot, uMinus, uPlus
}

/**
Expand Down
1 change: 1 addition & 0 deletions source/nagaqueen/callbacks.ooc
Expand Up @@ -263,6 +263,7 @@ nq_onDoubleArrow: unmangled func (l: OocListener, left, right: Object) -> Object
nq_onLogicalNot: unmangled func (l: OocListener, inner: Object) -> Object { l onUnOp(UnOpType not, inner) }
nq_onBinaryNot: unmangled func (l: OocListener, inner: Object) -> Object { l onUnOp(UnOpType bNot, inner) }
nq_onUnaryMinus: unmangled func (l: OocListener, inner: Object) -> Object { l onUnOp(UnOpType uMinus, inner) }
nq_onUnaryPlus: unmangled func (l: OocListener, inner: Object) -> Object { l onUnOp(UnOpType uPlus, inner) }

nq_onEquals: unmangled func (l: OocListener, left, right: Object) -> Object { l onBinOp(BinOpType equals, left, right) }
nq_onNotEquals: unmangled func (l: OocListener, left, right: Object) -> Object { l onBinOp(BinOpType notEquals, left, right) }
Expand Down

0 comments on commit 196558b

Please sign in to comment.