Skip to content

Commit 06fd8eb

Browse files
authored
Merge pull request #205 from cpp-lln-lab/uninit
[FIX] clear only CPP PTB global variables when uninitialising
2 parents 0738579 + 44abd72 commit 06fd8eb

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
[![Documentation Status: stable](https://readthedocs.org/projects/cpp-ptb/badge/?version=stable)](https://cpp-ptb.readthedocs.io/en/stable/?badge=stable)
22
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4007672.svg)](https://doi.org/10.5281/zenodo.4007672)
3-
[![](https://img.shields.io/badge/Octave-CI-blue?logo=Octave&logoColor=white)](https://github.com/cpp-lln-lab/CPP_PTB/actions)
4-
![](https://github.com/cpp-lln-lab/CPP_PTB/workflows/CI/badge.svg)
3+
[![tests and coverage](https://github.com/cpp-lln-lab/CPP_PTB/actions/workflows/run_tests.yml/badge.svg)](https://github.com/cpp-lln-lab/CPP_PTB/actions/workflows/run_tests.yml)
54
[![codecov](https://codecov.io/gh/cpp-lln-lab/CPP_PTB/branch/master/graph/badge.svg)](https://codecov.io/gh/cpp-lln-lab/CPP_PTB)
65
[![All Contributors](https://img.shields.io/badge/all_contributors-5-orange.svg?style=flat-square)](#contributors-)
76

87
# CPP_PTB
98

10-
- [CPP_PTB](#cpp_ptb)
9+
- [CPP\_PTB](#cpp_ptb)
1110
- [Documentation](#documentation)
1211
- [Content](#content)
1312
- [Contributing](#contributing)

cpp_ptb.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ function uninitCppPtb()
131131
rmpath(CPP_PTB_PATHS);
132132

133133
if IsOctave
134-
clear -g;
134+
clear -g CPP_PTB_PATHS CPP_PTB_INITIALIZED;
135135
else
136-
clearvars -GLOBAL;
136+
clearvars -GLOBAL CPP_PTB_PATHS CPP_PTB_INITIALIZED;
137137
end
138138

139139
end

0 commit comments

Comments
 (0)