Mercurial > code > home > repos > homeauto
annotate service/iot2/esp32_main/panicoverride.nim @ 1533:a598d2141587
more mqtt_to_rdf renames. bring in basic LitElement setup for the debug page
Ignore-this: 85e2ab49915e44b08219e537fab21870
darcs-hash:f2d312ec10bb4a33c501a24bd7d11a1f35673f25
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sat, 08 Feb 2020 04:02:22 -0800 |
parents | 44aae4efedf6 |
children |
rev | line source |
---|---|
1528
44aae4efedf6
an attempt as ESP-IDF build (doesn't work) calling a nim-generated main function (also doesn't work)
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
1 proc printf(frmt: cstring) {.varargs, importc, header: "<stdio.h>", cdecl.} |
44aae4efedf6
an attempt as ESP-IDF build (doesn't work) calling a nim-generated main function (also doesn't work)
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
2 proc exit(code: int) {.importc, header: "<stdlib.h>", cdecl.} |
44aae4efedf6
an attempt as ESP-IDF build (doesn't work) calling a nim-generated main function (also doesn't work)
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
3 |
44aae4efedf6
an attempt as ESP-IDF build (doesn't work) calling a nim-generated main function (also doesn't work)
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
4 {.push stack_trace: off, profiler:off.} |
44aae4efedf6
an attempt as ESP-IDF build (doesn't work) calling a nim-generated main function (also doesn't work)
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
5 |
44aae4efedf6
an attempt as ESP-IDF build (doesn't work) calling a nim-generated main function (also doesn't work)
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
6 proc rawoutput(s: string) = |
44aae4efedf6
an attempt as ESP-IDF build (doesn't work) calling a nim-generated main function (also doesn't work)
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
7 printf("%s\n", s) |
44aae4efedf6
an attempt as ESP-IDF build (doesn't work) calling a nim-generated main function (also doesn't work)
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
8 |
44aae4efedf6
an attempt as ESP-IDF build (doesn't work) calling a nim-generated main function (also doesn't work)
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
9 proc panic(s: string) = |
44aae4efedf6
an attempt as ESP-IDF build (doesn't work) calling a nim-generated main function (also doesn't work)
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
10 rawoutput(s) |
44aae4efedf6
an attempt as ESP-IDF build (doesn't work) calling a nim-generated main function (also doesn't work)
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
11 exit(1) |
44aae4efedf6
an attempt as ESP-IDF build (doesn't work) calling a nim-generated main function (also doesn't work)
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
12 |
44aae4efedf6
an attempt as ESP-IDF build (doesn't work) calling a nim-generated main function (also doesn't work)
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
13 {.pop.} |