- // TODO: Where should I handle attempts to access an unitialized label?
- // For now, leave it undefined in a nasal demon sense.
+ return label;
+}
+
+uint16_t
+check_label(size_t * labels, uint16_t label, size_t * pc)
+{
+ if (!labels[label]) {
+ fprintf(stderr, "Trying to process label 0x%X.\n", label);
+ ws_die(pc, "uninitialized label (forgot an include?)");
+ }