This commit is contained in:
Lyon 2022-07-02 00:04:57 +08:00
parent f51c9a05d2
commit 8f25f0aa82
2 changed files with 8 additions and 3 deletions

View File

@ -2,8 +2,8 @@
#include "Arm2D_common.h" #include "Arm2D_common.h"
void Arm2D_Element_update(PikaObj* self) { void Arm2D_Element_update(PikaObj* self) {
/* need to be override */ /* need to be override */
args_setErrorCode(self->list, 1); obj_setErrorCode(self, 1);
args_setSysOut(self->list, "[error]: update method not be overrided !"); obj_setSysOut(self, "[error]: update method not be overrided !");
} }
void Arm2D_Element_init(PikaObj* self) { void Arm2D_Element_init(PikaObj* self) {

View File

@ -35,11 +35,16 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
/* clang-format off */
#if PIKA_ASSERT_ENABLE #if PIKA_ASSERT_ENABLE
#include <assert.h> #include <assert.h>
#else #else
#define assert(...) #ifndef assert
#define assert(...)
#endif
#endif #endif
/* clang-format on */
/* Compiler */ /* Compiler */
#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 5000000) /* ARM Compiler \ #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 5000000) /* ARM Compiler \