Index: src/macros.py |
diff --git a/src/macros.py b/src/macros.py |
index 6ea6d1683b1bd0f552d416daff240c8efddf1ddd..9f6a698a844c019d7f063c2a32905aae55d250cc 100644 |
--- a/src/macros.py |
+++ b/src/macros.py |
@@ -157,6 +157,8 @@ macro TO_NAME(arg) = (%_ToName(arg)); |
macro JSON_NUMBER_TO_STRING(arg) = ((%_IsSmi(%IS_VAR(arg)) || arg - arg == 0) ? %_NumberToString(arg) : "null"); |
macro HAS_OWN_PROPERTY(arg, index) = (%_CallFunction(arg, index, ObjectHasOwnProperty)); |
macro HAS_INDEX(array, index, is_array) = ((is_array && %_HasFastPackedElements(%IS_VAR(array))) ? (index < array.length) : (index in array)); |
+macro MAX_SIMPLE(argA, argB) = (argA < argB ? argB : argA); |
Michael Starzinger
2015/10/07 18:49:07
Please be aware that this macro will expand "MAX_S
|
+macro MIN_SIMPLE(argA, argB) = (argA < argB ? argA : argB); |
# Private names. |
macro IS_PRIVATE(sym) = (%SymbolIsPrivate(sym)); |