Skip to content

Commit

Permalink
fix null app
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasku committed Jun 17, 2023
1 parent 5155123 commit bb416df
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions packages/app/src/app/app_null.c.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#include <ek/app_native.h>

int ek_app_open_url(const char* url) {
(void) sizeof(url);
(void)(url);
return 1;
}

int ek_app_font_path(char* dest, uint32_t size, const char* font_name) {
(void) sizeof(dest);
(void) sizeof(size);
(void) sizeof(font_name);
(void)(dest);
(void)(size);
(void)(font_name);
return 1;
}

int ek_app_share(const char* content) {
(void) sizeof(content);
(void)(content);
return 1;
}

Expand All @@ -25,14 +25,8 @@ int main(int argc, char* argv[]) {
if (ek_app.state & EK_APP_STATE_EXIT_PENDING) {
return ek_app.exit_code;
}

int flags = 0;
if (ek_app.config.need_depth) {
flags |= 1;
}
ek_app__notify_ready();
while((ek_app.state & EK_APP_STATE_EXIT_PENDING) == 0) {

while ((ek_app.state & EK_APP_STATE_EXIT_PENDING) == 0) {
}
return ek_app.exit_code;
}

0 comments on commit bb416df

Please sign in to comment.