Commit 62fd52f5 authored by Niels Möller's avatar Niels Möller
Browse files

Store the name of each class in the class struct, for debugging purposes.

Rev: src/lsh_types.h:1.21
Rev: src/make_class:1.7
parent 24f4abca
......@@ -93,6 +93,8 @@ struct lsh_class
{
struct lsh_object super;
struct lsh_class *super_class;
char *name; /* For debugging */
size_t size;
void (*mark_instance)(struct lsh_object *instance,
......
......@@ -357,7 +357,7 @@
; structures.
(list "&" super "_class")
"0")
", sizeof(struct " name "),\n "
", \"" name "\", sizeof(struct " name "),\n "
(if mark-function (list "do_" name "_mark") "NULL") ",\n "
(if free-function (list "do_" name "_free") "NULL") "\n"
"}"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment