Node:Feature Manipulation, Next:, Up:Feature Tracking



33.2.1 Feature Manipulation

To check whether a particular feature is available, use the provided? procedure:

provided? feature Scheme Procedure
feature? feature Deprecated Scheme Procedure
Return #t if the specified feature is available, otherwise #f.

To advertise a feature from your own Scheme code, you can use the provide procedure:

provide feature Scheme Procedure
Add feature to the list of available features in this Guile process.

For C code, the equivalent function takes its feature name as a char * argument for convenience:

void scm_add_feature (const char *str) C Function
Add a symbol with name str to the list of available features in this Guile process.