This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

checking return value of scm_newsmob



How may one check if scm_newsmob returned a valid smob type tag before
using the tag in code? Yet I neglected that, and the data-rep info doesn't
mention it, but what happens for example when the max amount of smob types
is exhausted? Does guile automatically invoke an error or does one need to 
do an SCM_ASSERT for that avail?

   Klaus Schilling