Polyman Documentation - v3.0.0
    Preparing search index...
    • Splits testlib.h into a declarations-only header and an implementation.

      Parameters

      • source: string

        Contents of testlib.h

      Returns TestlibSplit | null

      The split, or null when the source contains a construct the splitter does not handle

      const split = splitTestlib(fs.readFileSync('testlib.h', 'utf-8'));
      // split.header: 'void registerGen(int argc, char *argv[], int);'
      // split.implementation: 'void registerGen(int argc, char *argv[], int) {...}'