1038: Remove remembering last 8 URLs. It did not work.
[elinks.git] / src / ecmascript / see / checktype.c
blob6c1fc7006f3475c26a2df87cb29c0a9a29dc3167
1 /* Check the type of a SEE object so it's safe to cast */
3 #ifdef HAVE_CONFIG_H
4 #include "config.h"
5 #endif
7 #include <see/see.h>
8 #include "ecmascript/see/checktype.h"
10 void
11 see_check_class(struct SEE_interpreter *interp,
12 const struct SEE_object *object,
13 const struct SEE_objectclass *class)
15 if (object->objectclass != class)
16 SEE_error_throw(interp, interp->TypeError,
17 "got %s, expected %s",
18 object->objectclass->Class,
19 class->Class);