dartApiDlForwarderContent function

String dartApiDlForwarderContent(
  1. String nitroNativePath
)

Implementation

String dartApiDlForwarderContent(String nitroNativePath) {
  final includePath = p.join(nitroNativePath, 'dart_api_dl.c').replaceAll(r'\', '/');
  return '// Generated by nitrogen link — do not edit.\n'
      '// Compiled as C (not C++) so the void*/function-pointer casts\n'
      '// in dart_api_dl.c are accepted by the compiler.\n'
      '#include "$includePath"\n';
}