INNER CODE UNIT · C

artifacts

spheredev/neosphere · src/cell/build.c:281

	artifacts = vector_new(sizeof(char*));
	if ((json = fs_fslurp(fs, "@/artifacts.json", &json_size))) {
		jsal_push_lstring(json, json_size);
		free(json);
		if (jsal_try_parse(-1)) {
			if (jsal_get_prop_string(-1, "builtTargets") && jsal_is_object(-1)) {
				num_artifacts = jsal_get_length(-1);
				for (i = 0; i < num_artifacts; ++i) {
					jsal_get_prop_index(-1, i);
					filename = strdup(jsal_to_string(-1));
					vector_push(artifacts, &filename);
					jsal_pop(1);
				}
			}
			jsal_pop(1);
		}
		jsal_pop(1);
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…