I know that Guile has a scm_assert_smob_type
function, but I do not believe that it returns a boolean.
I want to be able to do something like:
if (type(smob) == int_smob)
{
int_foo(smob);
}
else if (type(smob) == string_smob)
{
string_foo(smob);
}