mirror of
https://github.com/epasveer/seer.git
synced 2026-08-29 16:40:42 +08:00
Tweak memory/array visualizer.
Make number of bytes default to 256. Can be changed if needed. Change to 'Variable expression'. Show results immediately.
This commit is contained in:
@@ -4,6 +4,17 @@
|
||||
#include <math.h>
|
||||
#include <iostream>
|
||||
|
||||
float* function1() {
|
||||
|
||||
float* float_array = (float*)malloc(256);
|
||||
|
||||
for (int i=0; i<64; i++) {
|
||||
float_array[i] = (float)i * 1.13;
|
||||
}
|
||||
|
||||
return float_array;
|
||||
}
|
||||
|
||||
int main (void) {
|
||||
|
||||
//
|
||||
@@ -50,6 +61,10 @@ int main (void) {
|
||||
currentPhase += phaseIncrement;
|
||||
}
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
float* x = function1();
|
||||
|
||||
//
|
||||
//
|
||||
@@ -60,6 +75,7 @@ int main (void) {
|
||||
free(int_array);
|
||||
free(float_array);
|
||||
free(sine_array);
|
||||
free(x);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user