File: mymalloc.c

package info (click to toggle)
gyp 0.1%2B20220404git9ecf45e-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,564 kB
  • sloc: python: 29,455; ansic: 1,087; cpp: 855; sh: 327; lisp: 258; objc: 234; asm: 43; makefile: 32
file content (12 lines) | stat: -rw-r--r-- 276 bytes parent folder | download | duplicates (42)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdlib.h>

// The windows ninja generator is expecting an import library to get generated,
// but it doesn't if there are no exports.
#ifdef _MSC_VER
__declspec(dllexport) void foo() {}
#endif

void *malloc(size_t size) {
  (void)size;
  return (void*)0xdeadbeef;
}