cbindgen/tests/expectations/mod_2018.compat.c
Emilio Cobos Álvarez 52de917d25 parser: Fix handling of #[path] attributes inside inline submodules.
As seen in hashbrown:

    #[cfg(feature = "raw")]
    /// Experimental and unsafe `RawTable` API. This module is only available if the
    /// `raw` feature is enabled.
    pub mod raw {
        // The RawTable API is still experimental and is not properly documented yet.
        #[allow(missing_docs)]
        #[path = "mod.rs"]
        mod inner;
        pub use inner::*;

        #[cfg(feature = "rayon")]
        pub mod rayon {
            pub use crate::external_trait_impls::rayon::raw::*;
        }
    }
2021-04-07 13:25:57 +02:00

29 lines
412 B
C

#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#define EXPORT_ME_TOO 42
typedef struct {
uint64_t val;
} ExportMe;
typedef struct {
uint64_t val;
} ExportMe2;
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
void export_me(ExportMe *val);
void export_me_2(ExportMe2*);
void from_really_nested_mod(void);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus