rtc_plugins/util/numpyConfig.h

14 lines
365 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// numpy_config.h
#pragma once
#ifndef NUMPY_CONFIG_INCLUDED
#define NUMPY_CONFIG_INCLUDED
// 使用更独特的项目前缀(建议:<PROJECT>_<MODULE>_<RANDOM_SUFFIX>
#define PY_ARRAY_UNIQUE_SYMBOL RTC_PLUGINS_ARRAY_API
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
// 确保只被包含一次
#include <Python.h>
#include <numpy/arrayobject.h>
#endif