Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
haugoug committed Nov 18, 2021
1 parent d73fae5 commit a351a4d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engine/include/vp/clock/clock_event.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ namespace vp {

int64_t get_cycle() { return cycle; }

void exec() { this->meth(this->_this, this); }

private:
uint8_t payload[CLOCK_EVENT_PAYLOAD_SIZE];
void *args[CLOCK_EVENT_NB_ARGS];
Expand Down
10 changes: 10 additions & 0 deletions engine/src/vp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2022,6 +2022,16 @@ int sc_main(int argc, char *argv[])
#endif


void vp::fatal(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
if (vfprintf(stderr, fmt, ap) < 0) {}
va_end(ap);
abort();
}


extern "C" void *gv_chip_pad_bind(void *handle, char *name, int ext_handle)
{
vp::component *instance = (vp::component *)handle;
Expand Down

0 comments on commit a351a4d

Please sign in to comment.