mu-scm: add full-message support (body/header)
Implement support for "header" and "body" procedures, with require loading the message file from disk, and create a foreign object for the message. We keep those alive in a vector, and hook up a finalizer. Update docs & tests as well.
This commit is contained in:
@ -61,6 +61,7 @@ namespace Mu::Scm {
|
||||
*/
|
||||
Result<void> run(const Config& conf);
|
||||
|
||||
|
||||
/**
|
||||
* Helpers
|
||||
*
|
||||
@ -225,18 +226,4 @@ namespace Mu::Scm {
|
||||
/**@}*/
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* SCM formatter, for use with fmt
|
||||
*
|
||||
* @param scm some object
|
||||
*
|
||||
* @return string representation of scm
|
||||
*/
|
||||
// static inline std::string format_as(SCM scm) {
|
||||
// return Mu::Scm::from_scm<std::string>(scm_object_to_string(scm, SCM_UNSPECIFIED));
|
||||
// }
|
||||
// XXX doesn't work:
|
||||
// "static assertion failed: Formatting of non-void pointers is disallowed"
|
||||
|
||||
#endif /*MU_SCM_HH*/
|
||||
|
||||
Reference in New Issue
Block a user