File: examplelib.h

package info (click to toggle)
meson-python 0.19.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,328 kB
  • sloc: python: 3,114; ansic: 304; cpp: 16; makefile: 8
file content (16 lines) | stat: -rw-r--r-- 340 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-FileCopyrightText: 2022 The meson-python developers
//
// SPDX-License-Identifier: MIT

#pragma once

#if defined(EXAMPLE_DLL_EXPORTS)
    #define EXAMPLE_DLL __declspec(dllexport)
#elif defined(BAR_DLL_IMPORTS)
    #define EXAMPLE_DLL __declspec(dllimport)
#else
    #define EXAMPLE_DLL
#endif


EXAMPLE_DLL int sum(int a, int b);