This repository has been archived by the owner on Sep 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#18) Added
init.cpp
for the lz4 sub-module
Added definition of pybind sub-module for containing the lz4 encapsulation.
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include "module.h" | ||
#include <lz4.h> | ||
|
||
using namespace lz4; | ||
|
||
context::context() | ||
{ | ||
} | ||
|
||
context::~context() | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include "../cint.h" | ||
|
||
#include "module.h" | ||
|
||
static test_initializer modules([](py::module &m) { | ||
auto lz4 = m.def_submodule("lz4"); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef __CINT_LZ4_MODULE__ | ||
#define __CINT_LZ4_MODULE__ | ||
|
||
#pragma once | ||
|
||
namespace lz4 { | ||
|
||
class context { | ||
context(); | ||
~context(); | ||
}; | ||
|
||
}; | ||
#endif // __CINT_LZ4_MODULE__ |