this repo has no description
1/* Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) */
2#pragma once
3
4#include "cpython-data.h"
5
6#include "runtime.h"
7
8namespace py {
9
10RawObject getExtensionFunction(RawObject object);
11
12RawObject newCFunction(Thread* thread, PyMethodDef* method, const Object& name,
13 const Object& self, const Object& module_name);
14
15RawObject newClassMethod(Thread* thread, PyMethodDef* method,
16 const Object& name, const Object& type);
17
18RawObject newExtensionFunction(Thread* thread, const Object& name,
19 void* function, int flags);
20
21RawObject newMethod(Thread* thread, PyMethodDef* method, const Object& name,
22 const Object& type);
23
24} // namespace py