1.1 --- a/templates/native.c Tue Nov 22 01:28:58 2016 +0100
1.2 +++ b/templates/native.c Tue Nov 22 17:20:56 2016 +0100
1.3 @@ -153,6 +153,17 @@
1.4 #undef other
1.5 }
1.6
1.7 +__attr __fn_native__int_neg(__attr __args[])
1.8 +{
1.9 + #define self (__args[1])
1.10 + /* self.__data__ interpreted as int */
1.11 + int i = __load_via_object(self.value, __pos___data__).intvalue;
1.12 +
1.13 + /* Return the new integer. */
1.14 + return __new_int(-i);
1.15 + #undef self
1.16 +}
1.17 +
1.18 __attr __fn_native__int_pow(__attr __args[])
1.19 {
1.20 #define self (__args[1])