Page MenuHomePhorge

runtime.c
No OneTemporary

Size
480 B
Referenced Files
None
Subscribers
None

runtime.c

#include <stdio.h>
#include <stdlib.h>
#include "runtime.h"
static struct ant_runtime runtime = {0};
struct ant_runtime *ant_runtime(void) {
if (runtime.js == NULL) {
fprintf(stderr, "Ant runtime not initialized!\n");
abort();
}
return &runtime;
}
struct ant_runtime *ant_runtime_init(struct js *js) {
runtime.js = js;
runtime.ant_obj = js_mkobj(js);
runtime.crypto_initialized = 0;
js_set(js, js_glob(js), "Ant", runtime.ant_obj);
return &runtime;
}

File Metadata

Mime Type
text/x-c
Expires
Wed, Jun 17, 1:52 PM (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
532779
Default Alt Text
runtime.c (480 B)

Event Timeline